import re

fin = open('spegasos.txt','r')
fout = open('result-logistic','w')

fout.write("sessionNo|prediction\n")
p = re.compile(r' +')

n = 0

for line in fin:
	data = p.split(line.rstrip())
	if data[3] == "1:n":
		n += 1
	# fout.write(data[1] + "|" + re.sub('\*', '', data[6]) + "\n")
print "n: %d" % n
print "y: %d" % (5111-n)